#include <pthread.h>
#include <stdio.h>

void *say()
{
    printf("hello\n");
}

int main()
{
    pthread_t t;
    pthread_create(&t, NULL, say, NULL);
    pthread_join(t,NULL);
    pthread_detach(t);
    printf("hello main\n");

    return 2;
}